package com.tuvi.nhamthin.ui;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.OvalShape;
import android.view.View;

public class CustomDrawableView extends View
{
  private int height;
  private ShapeDrawable mDrawable;
  private int width;
  private int x;
  private int y;

  public CustomDrawableView(Context paramContext, int x, int y, int w, int h)
  {
    super(paramContext);
    intParam(x, y, w, h);
    this.mDrawable = new ShapeDrawable(new OvalShape());
    this.mDrawable.getPaint().setColor(-65536);
    this.mDrawable.setBounds(this.x, this.y, this.x + this.width, this.y + this.height);
  }

  private void intParam(int x, int y, int w, int h)
  {
    this.x = x;
    this.y = y;
    this.width = w;
    this.height = h;
  }

  protected void onDraw(Canvas paramCanvas)
  {
    this.mDrawable.draw(paramCanvas);
  }
}